package com.gitee.ywj1352.server;

import com.gitee.ywj1352.server.biz.HiServer;
import com.gitee.ywj1352.server.factory.impl.DefaultServerFactory;
import com.gitee.ywj1352.server.service.NettyServerService;

public class App {

    public static void main(String[] args) throws InterruptedException {
        HiServer hiServer = new HiServer();
        ServerFactory defaultServerFactory = new DefaultServerFactory();
        defaultServerFactory.initProcessServer(HiServer.class, hiServer);
        NettyServerService nettyServerService = new NettyServerService();
        nettyServerService.start(8789, defaultServerFactory);
    }
}
